<?php

class News
{
	
	public $id;
	public $titre;
	public $contneu;
	
	function afficher_news()
	{
		global $bdd;
		$news = array();
		
		$req = $bdd->query('SELECT * FROM news');
		
		while ( $data =  $req->fetch())
		{
			$news[] = $data;
		}
		
		return $news;
	}

	function supprimer_news()
	{
		if($rang == 1)
		{
			
		}
	}
}
?>